<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>globalThis</title>
</head>
<body>

<button id="btn">点击</button>

<script>

    const btn = document.getElementById("btn");

    btn.onclick = function () {

        console.log(globalThis)
    };


</script>

</body>
</html>
